"use client";

import { useStore } from "@/store/createStore";

export default function Index({ children, list }) {
  useStore.setState({
    wordList: list,
  });
  return children;
}
